import {
	getRequest,
	postRequest,
	postRequest2,
	postRequest3
} from './request.js'

/* 基础数据模块 */
// export const login = (data, blon) => postRequest('/api/user/login', data, blon)
// 推荐位
export const positionList = data => postRequest("/api/position.content/lists", data, false);
// 推荐位详情
export const positionDetail = data => postRequest("/api/position.content/detail", data, false);
// 新闻动态
export const articleQuery = data => postRequest("/api/article/lists", data, false);
// 详情
export const articleDetail = data => postRequest("/api/article/Detail", data, false);
// 微信登陆
export const minilogin = data => postRequest("/api/wechat/minilogin", data, false);
export const checkToken = data => postRequest("/api/user/checkToken", data, false);
export const checkToken2 = data => postRequest2("/api/user/checkToken", data, false);
// 任务列表
export const taskLists = data => postRequest("/api/task/lists", data, false);
export const taskDetail = data => postRequest("/api/task/detail", data, false);
// 商家入驻
export const storeAdd = (data, blon) => postRequest2("/company/store/add", data, true);
// 登陆
export const companyLogin = data => postRequest("/company/company_admin/login", data, false);
// 管理总账号
export const adminLogin = data => postRequest("/admin/admin/login", data, false);
export const adminInfo = (data, blon) => postRequest3("/admin/admin/info", data, true);
export const adminInfo2 = data => postRequest3("/admin/admin/info", data, false);
export const companyLists = (data, blon) => postRequest3("/admin/company/lists", data, true);
export const companyEnter = (data, blon) => postRequest3("/admin/company/enter", data, true);
// export const adminLogin = blon => postRequest("/admin/admin/login", data, false);
// 分组列表
export const materialLists = (data, blon) => postRequest2("/company/material.group/lists", data, true);
// 添加分组
export const materialGroupAdd = (data, blon) => postRequest2("/company/material.group/add", data, true);
// 编辑分组
export const materialGroupEdit = (data, blon) => postRequest2("/company/material.group/edit", data, true);
// 删除分组
export const materialGroupDelete = (data, blon) => postRequest2("/company/material.group/delete", data, true);
export const groupOptions = (data, blon) => postRequest2("/company/material.group/options", data, true);
// 区域数据
export const regionLists = data => postRequest("/api/region/lists", data, false);
// 数据字段
export const dictAll = data => postRequest("/admin/dict.data/all", data, false);
// 达人入驻
export const darenApply = data => postRequest("/api/user.daren_apply/add", data, false);
// 达人详情
export const userDetail = data => postRequest("/api/user/detail", data, false);
// 任务申请
export const taskApplyAdd = data => postRequest("/api/task.apply/add", data, false);
// 达人入驻列表
export const darenApplyList = data => postRequest("/api/user.daren_apply/lists", data, false);
export const darenApplyDetail = data => postRequest("/api/user.daren_apply/detail", data, false);
// 素材列表
export const companyMaterialLists = (data, blon) => postRequest2("/company/material/lists", data, true);
export const companyMateriaDelete = (data, blon) => postRequest2("/company/material/delete", data, true);
// 我的任务
export const taskApplyLists = data => postRequest("/api/task.apply/lists", data, false);
export const taskApplyDetail = data => postRequest("/api/task.apply/detail", data, false);
// 佣金提现
export const withDraw = data => postRequest("/api/user/withDraw", data, false);
export const moneyLog = data => postRequest("/api/user.money_log/lists", data, false);
export const transferList = data => postRequest("/api/transfer/lists", data, false);
// 查看素材
export const materialList = data => postRequest("/api/material/lists", data, false);
// 子账号用户详情
export const companyInfo = (data, blon) => postRequest2("/company/company_admin/info", data, true);
// 任务发布
export const taskAdd = (data, blon) => postRequest2("/company/task/add", data, true);
// 门店列表
export const storeList = (data, blon) => postRequest2("/company/store/lists", data, true);
export const storeOptions = (data, blon) => postRequest2("/company/store/options", data, true);
// 分组选项
export const materialOptions = (data, blon) => postRequest2("/company/material.group/options", data, true);
// 发布任务列表
export const taskListsCompany = (data, blon) => postRequest2("/company/task/lists", data, true);
export const taskListsCompanyDetail = (data, blon) => postRequest2("/company/task/detail", data, true);
export const taskEdit = (data, blon) => postRequest2("/company/task/edit", data, true);
// 选号
export const taskApplyListsCompany = (data, blon) => postRequest2("/company/task.apply/lists", data, true);
export const taskApplyListsSelect = (data, blon) => postRequest2("/company/task.apply/select", data, true);
// 商户管理
export const storeAddCompany = (data, blon) => postRequest2("/company/store/add", data, true);
export const storeEditCompany = (data, blon) => postRequest2("/company/store/edit", data, true);
export const storeDetailCompany = (data, blon) => postRequest2("/company/store/detail", data, true);
// 上传素材
export const materialAdd = (data, blon) => postRequest2("/company/material/add", data, true);
// 提交任务
export const taskSubmit = data => postRequest("/api/task.submit/add", data, false);
// 提交列表
export const taskSubmitLists = data => postRequest("/api/task.submit/lists", data, false);
// 提交详情
export const taskSubmitDetail = data => postRequest("/api/task.submit/detail", data, false);
// 审核提交列表
export const taskSubmitListsCompany = (data, blon) => postRequest2("/company/task.submit/lists", data, true);
export const taskSubmitDetailCompany = (data, blon) => postRequest2("/company/task.submit/detail", data, true);
export const taskSubmitCheck = (data, blon) => postRequest2("/company/task.submit/check", data, true);
export const storeMoneyList = (data, blon) => postRequest2("/company/store.money_log/lists", data, true);